home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_10.lha / 7_10 / p_setprior.c < prev    next >
Text File  |  1993-08-08  |  527b  |  16 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <process.h>
  6. include <debug.h>    /* DELETE */
  7. / Set the process' new priority. Return the old priority.
  8. nt process::setpriority(int p)
  9.  
  10.    if (debug) /*DELETE*/ cerr << "process" << this << "::setpriority(" << p << ")\n";
  11.    int ret = t_priority;
  12.    t_priority = p;
  13.    if (debug) /*DELETE*/ cerr << "<<<< process" << this << "::setpriority() <- " << ret << "\n";
  14.    return ret;
  15.  
  16.